import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import MainNon from '@/components/main/index/mainNon'
import ces from '../router/ces' //测试使用不用管
import index1 from '../router/index1/index'//主页1
import index2 from '../router/index2/index'//主页2
import index3 from '../router/index3/index'//主页2
import main from '@/components/main/main'

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/main',
      name: 'main',
      component: main,
      children: [
        {
          path: '/',
          name: 'mainNon',
          component: MainNon,
        },
        ...index1, ...index2, ...index3, ...ces
      ]
    },
    
  ]
})
